package org.jeecg.modules.basic.demo.bed.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Description:
 * @author:MJ-BaBa
 * @date: 2022.06.15
 */
@Data
@TableName(value = "lwgy_base_apartment")
@ApiModel(value="楼宇单元楼层房间对象", description="楼宇单元楼层房间对象")
public class BedAndApart implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**校区*/
    @Excel(name = "校区", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "校区")
    private String campusId;
    /**院系*/
    @Excel(name = "院系", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_school")
    @ApiModelProperty(value = "院系")
    private String facultyId;
    /**楼宇*/
    @Excel(name = "楼宇", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼宇")
    private String buildingId;
    /**单元*/
    @Excel(name = "单元", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "单元")
    private String unitId;
    /**楼层*/
    @Excel(name = "楼层", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "楼层")
    private String layerId;
    /**房间*/
    @Excel(name = "房间", width = 15)
    @Dict(dicCode = "id",dicText = "name",dictTable = "lwgy_base_apartment")
    @ApiModelProperty(value = "房间")
    private String roomId;
    /**名称*/
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**编码*/
    @Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private String code;
    /**父级节点*/
    @Excel(name = "父级节点", width = 15)
    @ApiModelProperty(value = "父级节点")
    private String pid;
    /**是否有子节点*/
    @Excel(name = "是否有子节点", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;
    /**类型*/
    @Excel(name = "类型", width = 15, dicCode = "apartment_type")
    @Dict(dicCode = "apartment_type")
    @ApiModelProperty(value = "类型")
    private String type;
    /**房间朝向*/
    @Excel(name = "房间朝向", width = 15, dicCode = "room_orientation")
    @Dict(dicCode = "room_orientation")
    private String roomOrientation;
    /**房间性别*/
    @Excel(name = "房间性别", width = 15, dicCode = "sex")
    @Dict(dicCode = "sex")
    @ApiModelProperty(value = "房间性别")
    private String roomSex;
    /**房间类型*/
    @Excel(name = "房间类型", width = 15, dicCode = "room_type")
    @Dict(dicCode = "room_type")
    @ApiModelProperty(value = "房间类型")
    private String roomType;
    /**床位号*/
    @Excel(name = "床位号", width = 15)
    @ApiModelProperty(value = "床位号")
    private String bedCode;
    /**床位价格*/
    @Excel(name = "床位价格", width = 15)
    @ApiModelProperty(value = "床位价格")
    private String bedPrice;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**年级*/
    @Excel(name = "年级", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "年级")
    private String studentYear;
    /**学历*/
    @Excel(name = "学历", width = 15, dicCode = "student_education")
    @ApiModelProperty(value = "学历")
    private String studentEducation;
}
